package com.ruoyi.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ruoyi.domain.SysMenu;

public interface SysMenuMapper {

	List<SysMenu> selectMenuList(SysMenu menu);

	List<SysMenu> selectMenuListByUserId(SysMenu menu);

	SysMenu selectMenuById(Long menuId);

	SysMenu checkMenuNameUnique(@Param("menuName") String menuName,@Param("parentId") Long parentId);

	int insertMenu(SysMenu menu);

	int updateMenu(SysMenu menu);

	int deleteMenuById(Long menuId);

	int hasChildByMenuId(Long menuId);

	List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId,@Param("menuCheckStrictly") boolean menuCheckStrictly);

	List<String> selectMenuPermsByRoleId(Long roleId);

	List<String> selectMenuPermsByUserId(Long userId);

}
